<?php 
include("admin/cls/sesion.php");
include_once "admin/cls/cls_user.php";
session_start();
if(!$_SESSION[""]->nombre)
	{
		header("Location:index.html");
	}
//echo $_SESSION[""]->nombre, $_SESSION[""]->id;
$users = new cls_user(); 
if($_GET["parner"]!=""){
	echo $_SESSION[""]->id,"ddd",$_GET["parner"];
	$yo=$_SESSION[""]->id;
	if($_GET["opcion"]=="resp"){
		$tu=$_GET["parner"];
	}
	else{
		$users->change_estate ($_SESSION[""]->id,'c');
		$users->call($_GET["parner"],$_SESSION[""]->id);
		$tu=$_GET["parner"];
	}
}
if($_GET["opcion"]=="salir"){
$users->change_estate ($_SESSION[""]->id,'o');
header("Location:home.php");
}

?>
<html>
<head><title></title></head>
<body>
<h2><a href="?opcion=salir">Finalizar llamada</a></h2>
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0"
 WIDTH="1000" HEIGHT="600" ALIGN="">
 <param name="flashVars" value="vari=71716"> 
 <?php 
 $server=$_SERVER['SERVER_ADDR'];
 echo $server;
 echo '<PARAM NAME=movie VALUE="Broadcasterproyecto.swf?yo='.$yo.'&tu='.$tu.'&server='.$server.'">';
 ?>
 <PARAM NAME=quality VALUE=high> 
 <PARAM NAME=bgcolor VALUE=#FFFFFF>
 <?php 
 echo '<EMBED src="Broadcasterproyecto.swf?yo='.$yo.'&tu='.$tu.'"  WIDTH="1000" HEIGHT="600" ALIGN="" quality=high bgcolor=#FFFFFF
 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>';
 ?>
</OBJECT>
</body>
<html>
